function sum(a, b = 1, c = 2) {
    return a + b + c;
}


console.log(sum(10, undefined, undefined))  // 13
console.log(sum(11))  //14
console.log(sum(1, undefined, 5)) //7